package com.ruiysoft.controller.order.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.util.Objects;

/**
 * OrderReceiverInfoVo
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-11-10T12:39:14.000+08:00")

public class OrderReceiverInfoVo   {
  @JsonProperty("telNumber")
  private String telNumber = null;

  @JsonProperty("provinceName")
  private String provinceName = null;

  @JsonProperty("cityName")
  private String cityName = null;

  @JsonProperty("countyName")
  private String countyName = null;

  @JsonProperty("detailInfo")
  private String detailInfo = null;

  @JsonProperty("userName")
  private String userName = null;

  @JsonProperty("postalCode")
  String postalCode = "";

  public OrderReceiverInfoVo postalCode(String postalCode) {
    this.postalCode = postalCode;
    return this;
  }

  public OrderReceiverInfoVo telNumber(String telNumber) {
    this.telNumber = telNumber;
    return this;
  }

  /**
   * Get telNumber
   * @return telNumber
  **/
  @ApiModelProperty(required = true, value = "")
  @NotNull


  public String getTelNumber() {
    return telNumber;
  }

  public void setTelNumber(String telNumber) {
    this.telNumber = telNumber;
  }

  public OrderReceiverInfoVo provinceName(String provinceName) {
    this.provinceName = provinceName;
    return this;
  }

  /**
   * Get provinceName
   * @return provinceName
  **/
  @ApiModelProperty(required = true, value = "")
  @NotNull


  public String getProvinceName() {
    return provinceName;
  }

  public void setProvinceName(String provinceName) {
    this.provinceName = provinceName;
  }

  public OrderReceiverInfoVo cityName(String cityName) {
    this.cityName = cityName;
    return this;
  }

  /**
   * Get cityName
   * @return cityName
  **/
  @ApiModelProperty(required = true, value = "")
  @NotNull


  public String getCityName() {
    return cityName;
  }

  public void setCityName(String cityName) {
    this.cityName = cityName;
  }

  public OrderReceiverInfoVo countyName(String countyName) {
    this.countyName = countyName;
    return this;
  }

  /**
   * Get countyName
   * @return countyName
  **/
  @ApiModelProperty(required = true, value = "")
  @NotNull


  public String getCountyName() {
    return countyName;
  }

  public void setCountyName(String countyName) {
    this.countyName = countyName;
  }

  public OrderReceiverInfoVo detailInfo(String detailInfo) {
    this.detailInfo = detailInfo;
    return this;
  }

  /**
   * Get detailInfo
   * @return detailInfo
  **/
  @ApiModelProperty(required = true, value = "")
  @NotNull


  public String getDetailInfo() {
    return detailInfo;
  }

  public void setDetailInfo(String detailInfo) {
    this.detailInfo = detailInfo;
  }

  public OrderReceiverInfoVo userName(String userName) {
    this.userName = userName;
    return this;
  }

  /**
   * Get userName
   * @return userName
  **/
  @ApiModelProperty(required = true, value = "")
  @NotNull


  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    OrderReceiverInfoVo orderReceiverInfoVo = (OrderReceiverInfoVo) o;
    return Objects.equals(this.telNumber, orderReceiverInfoVo.telNumber) &&
        Objects.equals(this.provinceName, orderReceiverInfoVo.provinceName) &&
        Objects.equals(this.cityName, orderReceiverInfoVo.cityName) &&
        Objects.equals(this.countyName, orderReceiverInfoVo.countyName) &&
        Objects.equals(this.detailInfo, orderReceiverInfoVo.detailInfo) &&
        Objects.equals(this.userName, orderReceiverInfoVo.userName);
  }

  @Override
  public int hashCode() {
    return Objects.hash(telNumber, provinceName, cityName, countyName, detailInfo, userName);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class OrderReceiverInfoVo {\n");

    sb.append("    telNumber: ").append(toIndentedString(telNumber)).append("\n");
    sb.append("    provinceName: ").append(toIndentedString(provinceName)).append("\n");
    sb.append("    cityName: ").append(toIndentedString(cityName)).append("\n");
    sb.append("    countyName: ").append(toIndentedString(countyName)).append("\n");
    sb.append("    detailInfo: ").append(toIndentedString(detailInfo)).append("\n");
    sb.append("    userName: ").append(toIndentedString(userName)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

  public String getPostalCode() {
    return postalCode;
  }

  public void setPostalCode(String postalCode) {
    this.postalCode = postalCode;
  }
}

